package com.yang.community.exception;

public enum CustomizeErrorCode implements CustomizeErrorCodeI {
    QUESTION_NOT_FOUND(2001,"你找的问题不见了。"),
    TARGET_PARAM__NOT_FOUND(2002,"为选择任何问题或评论选择回复。"),
    NOT_LOGIN(2003,"当前操作需要登录，请登录后重试。"),
    SYSTEM_ERROR(2004,"服务器出错！稍后再试！"),
    TYPE_PARAM_WRONG(2005,"评论类型错误或不存在!"),
    COMMENT_NOT_FOUND(2006,"你回复的评论不存在了！"),
    COMMENT_IS_EMPTY(2007,"输入的内容不能为空！"),
    READ_NOTIFICATION_FAIL(2008,"不能读别人的信息！"),
    NOTIFICATION_NOT_FOUND(2009,"消息不见了。"),
    ;

    private Integer code;
    private String message;


    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    CustomizeErrorCode(Integer code, String message) {

        this.code = code;
        this.message = message;
    }

}
